<f:view xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
	
	<h:form>

   	<p:dashboard id="homeModuleList" model="#{homeViewListBeanService.model}" 
        reorderListener="#{homeViewListBeanService.handleReorder}"  
        styleClass="portal-mainView-home">  
  		<c:forEach items="#{homeViewListBeanService.allView}"
					var="homeModule">
			<p:panel id="#{homeModule.id}" header="#{homeModule.label}"
				styleClass="portal-mainView-tab-home"
				toggleable="true" closable="true" toggleSpeed="500" closeSpeed="500" 
				widgetVar="#{homeModule.id}_panel">  
	            <ui:include src="#{homeModule.layout.src}"></ui:include>
	            
	            <f:facet name="options">
					<p:menu>  
			            <p:submenu label="设置">  
			                <p:menuitem id="#{homeModule.id}_refresh" value="刷新" 
			                	actionListener="#{portalAction.refleshHomeModel}"
			                	icon="ui-icon ui-icon-refresh" update="#{homeModule.id}">
			                </p:menuitem>
			       		</p:submenu>  
			    	</p:menu>
	            </f:facet>
	        </p:panel> 
		</c:forEach>
    </p:dashboard>
	
	</h:form>
</f:view>